home *** CD-ROM | disk | FTP | other *** search
/ QuickTime for the Web (2nd Edition) / QuickTime for the Web (2nd Edition).iso / pc / AppleScript / QUICKTIME 5.0.2 SCRIPTS / QT 5.0 Applets-Droplets / Media Skin Droplets / READ ME
Encoding:
Text File  |  2000-12-17  |  7.5 KB  |  400 lines

  1. Media Skin Droplet
  2.  
  3. This script will assemble the components of a media skin movie and save the results as a self-contained QuickTime movie file. The following text describes how the script works and the steps required to use the example files included with the script. Note that this script only processes standard QuickTime movie files of file type “MooV”.
  4.  
  5.  
  6.  
  7. The Media Skin Image Files
  8. Creating a custom media skin for your movies requires the creation of three image files:
  9.  
  10. 1) The media skin. This image will be the window in which the movie is played. It can be of nearly any shape and size. 
  11.  
  12. In the example included with this script, there is a simple media skin file which adds a standard border and title bar to the movie.  This image is designed to display a movie having a width of 240 pixels and a height of 180 pixels. The blue region defines the area to display the video content of the movie. 
  13.  
  14. Note that the offset of the top left of the blue region is 6 pixels horizontally and 22 pixels vertically from the top left of the media skin image. The script will use these measurements in order to place the video track in the corrext position over the media skin background. Note that the size and offset info has been overlayed on the media skin image.
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. 2) The drag mask image. This image will define the areas of the window which can be clicked by the user to drag the window. The black regions of the image will be the clickable areas of the finished window. In this example, the title bar and sides of the movie will be the drag regions.
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. 3) The window mask image. This image defines the visable area of the media skin window. Black regions will be visible to the user, white areas will be invisible. In this example, the entire area defined by the media skin image will be visible.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77. Transparent Overlay Media Skins
  78.  
  79. If you want the media skin to partially cover the source video, fill the area to be transparent with a solid color of a specific RGB value such as White, Black, %50 Gray, 100% Blue, etc. 
  80.  
  81. In the following example image, the Q has been filled with %50 Gray. The script preferences can be set to adjust the track’s operation color and transfer mode for this value, and the center of the Q image will become transparent when the skinned movie is created.
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101. Setting the Script Preferences
  102.  
  103. The script droplet relies on preferences, set by the user, to locate and manipulate the essential files. This script is designed to look for the various image files in the same folder as the droplet. If the essential image files are not in the same folder as the script, the script will not execute.
  104.  
  105. You can make copies of this droplet to be placed in other folders containing your various media skin files. Set the preferences for each droplet to work with its neighbor files.
  106.  
  107. To set the preferences for the droplet, double-click its icon in the Finder to summon the status dialog. This dialog shows the current settings for the various script preferences. Click the “Set Prefs” button to set each of the script preferences.
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. The first three preferences are for identifying the image files to be used by the script when constructing the media skin movie.
  131.  
  132. In the first dialog, enter the name of the image file which will be used as the media skin background. You may either enter the name in the input field or click the “Choose File” button to locate the appropriate file. The script will then place the name of the chosen file in the input field for you.
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147. When you've entered the name of the appropriate media skin image file, click the “OK” button to proceed.
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162. Repeat this process in the forthcoming dialogs for identifying the window mask image and the drag mask image.
  163.  
  164. After inputing the names of the other files, two successive dialogs will appear asking for you to enter the offset to be used to position the video track against the chosen media skin background. These measurements depend on the design of your media skin. 
  165.  
  166. In the first dialog, enter the horizontal offset (in pixels) from the left of the media skin image to the left of the video display area.
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179. In the second dialog, enter enter the vetical offset (in pixels) from the top of the media skin image to the top of the video display area.
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192. The next dialog determines whether you want the media skin image to be placed behind the source video or infront of the source video. Media skin images placed over the source video must have areas of a solid color which will be made transparent during the creation of the skinned movie. 
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203. 
  204. If you clicked the “Yes” button, a list dialog will appear from which you can choose the color which the script will make transparent. If your overlay color is not in the list you may enter its RGB values individually by clicking the “Other” button at the bottom of the list dialog.
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230. If you clicked the “Other” button, a series of three dialogs will prompt you for each of the RGB values for color to be made transparent. Every color is specified as a list of individual Red, Green, and Blue values: {Red value, Green value, Blue value}. Each individual RGB color component is an integer between 0 and 65535, with 0 being the minimum and 65535 being the maximun value. 
  231.  
  232. For example, White is {65535, 65535, 65535}, Black is {0, 0, 0}, 100% Red is {65535, 0, 0}, 50% Gray is {32768, 32768, 32768}, etc. NOTE that the values you enter in these dialogs must exactly match those of the area in the overlay image which is meant to be transparent.
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245. 
  246.  
  247.  
  248.  
  249. The final two preference dialogs are for setting the playback properties.
  250.  
  251. Click the “Yes” button if you want the movie to automatically start playing when opened.
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263. Click the “Yes” button if you want the movie to automatically close when it has finished playing.
  264. 
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277. After setting the property, the script will return to the status dialog. Click the “Done” button to exit the script.
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301. If the media skin image is set to overlay, the operation color name or value will be displayed in the status dialog.
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326. Running the Script
  327.  
  328. To use the script, drag a movie file, or multiple files, or folders of movie files onto the droplet. A dialog will appear prompting for the destination folder for the finished files.
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350. 
  351.  
  352.  
  353.  
  354. Once chosen, a media skin copy of each dragged-on movie will be created and placed into this folder.
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392. Adding Extra Image Tracks
  393.  
  394. You may wish to add other image or sprite tracks to the finished movie. You can use the script “Import & Position Image Track” to add and position new tracks to the media skin movie. This script, one of the QuickTime 5.0 Player script collection, is saved in compiled format and must be run from a menu such as OSA Menu (A script menu, written by Leonard Rosenthol (www.Lazerware.com), which provides a convienient means for launching compiled scripts from within any application.
  395.  
  396.  
  397.  
  398.  
  399. Copyright ©2000 Apple Computer, Inc.  All rights reserved. Apple, the Apple logo, AppleScript, QuickTime, and Mac are trademarks of Apple Computer , Inc., registered in the U.S and other countries.  Other company and product names are trademarks of their respective companies.  Mention of non-Apple products is for informational purposes and constitutes neither an endorsement nor a recommendation.  Apple assumes no responsibility with regard to the selection, performance, or use of these products.
  400.